package cn.trigram.mgb.ext;

import cn.trigram.mgb.MybatisGeneratorProperties;
import lombok.Data;
import org.mybatis.generator.config.Context;

@Data
public abstract class AbstractContextCustomize {

  protected MybatisGeneratorProperties mgbProps;

  public AbstractContextCustomize(MybatisGeneratorProperties mgbProps) {

    this.mgbProps = mgbProps;

  }

  public abstract void customize(Context context);

  public static class DefaultContextCustomize extends AbstractContextCustomize {

    public DefaultContextCustomize() {

      super(null);
    }

    @Override
    public void customize(Context context) {

    }

  }

}
